package com.example.suuu.project.system.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "登录",description = "登录")
public class UserLogin {
    @NotNull(message = "账号不能为空")
    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty(value = "账号")
    private String username;

    @NotNull(message = "密码不能为空")
    @Size(min = 6, max = 18, message = "密码长度必须是6~18个字符")
    @ApiModelProperty(value = "密码")
    private String password;
}
